/**************************************************************************
**
** Copyright (C) 2011 Frank Büttner <frank-buettner@gmx.net>
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program.  If not, see <http://www.gnu.org/licenses/>.
**
**************************************************************************/


#ifndef MODULLISTE_H
#define MODULLISTE_H

#include <QtCore>

class Modulbasis;
class Modulliste :public QObject
{
    Q_OBJECT
    public:
	Modulliste(QObject *eltern);
	void			    neuesModul(Modulbasis *modul);
	Modulbasis*		    ModulSuchen(QString const &dateifilter)const;
	Modulbasis*		    Modul(const uint id)const;
	const uint		    AnzahlDerModule()const{return K_Module.size();}
	const QStringList&	    Dateifilter()const{return K_Dateifilter;}
    Q_SIGNALS:
	void			    Fehler(const QString &fehler);
    private:
	QList<Modulbasis *>	    K_Module;
	QHash<QString,Modulbasis*>  K_Dateifilterliste;
	QStringList		    K_Dateifilter;
	QHash<QString,Modulbasis*>  K_Dateiendungen;
};

#endif // MODULLISTE_H
